/*
 * File:   config.h
 * Author: Jeff
 *
 * Created on April 20, 2014, 12:40 AM
 */

#ifndef CONFIG_H
#define	CONFIG_H

#ifdef	__cplusplus
extern "C" {
#endif

// http://gputils.sourceforge.net/html-help/PIC18F24K50-conf.html

#pragma config FOSC = INTOSCIO      //internal oscillator, i/o on osc2 pin
#pragma config CFGPLLEN = OFF        // PLL enabled
#pragma config PLLSEL = PLL4X       // 4x clock multiplier
#pragma config CPUDIV = NOCLKDIV    // cpu uses osc freq
#pragma config PCLKEN = ON          // primary oscillator enabled
#pragma config FCMEN = OFF          // no fail safe clock monitor
#pragma config IESO = OFF           // oscillator switchover disabled
#pragma config nPWRTEN = ON         // oscillator power up timer enabled
#pragma config BOREN = OFF          // hardware brown out reset
#pragma config WDTEN = OFF          // watchdog timer disabled
#pragma config CCP2MX = RB3         // CCP2 input/output is multiplexed with RB3 (doesn't matter)
#pragma config PBADEN = OFF         // portB 0to 4 digital - not analogue
#pragma config T3CMX = RB5          // T3CKI function is on RB5 (doesn't matter)
#pragma config SDOMX = RC7          // SDO function is on RC7 (doesn't matter)
#pragma config MCLRE = ON           // MCLR pin enabled
#pragma config STVREN = ON          // stack over/underflow will cause reset
#pragma config LVP = OFF            // low voltage programming disabled
#pragma config ICPRT = OFF          // ICPORT disabled
#pragma config XINST = OFF          // do not allow PIC18 extended instructions
#pragma config DEBUG = OFF          // background debugger disabled
#pragma config CP0 = OFF            // code protection block 0
#pragma config CP1 = OFF
#pragma config CPB = OFF            // code protection boot block
#pragma config CPD = OFF            // code protection data EEPROM
#pragma config WRT0 = OFF           // write protection block 0
#pragma config WRT1 = OFF
#pragma config WRTB = OFF           // write protection boot block
#pragma config WRTC = OFF           // write protection configuration register
#pragma config WRTD = OFF           // write protection data EEPROM
#pragma config EBTR0 = OFF          // table read protection block 0
#pragma config EBTR1 = OFF
#pragma config EBTRB = OFF          // table read protection boot block

#ifdef	__cplusplus
}
#endif

#endif	/* CONFIG_H */

